package com.changpay.zywy.mvp.model


import com.changpay.zywy.base.BaseModel
import com.changpay.zywy.http.RetrofitHelper
import com.changpay.zywy.mvp.contract.RegisterContract
import com.changpay.zywy.bean.HttpResult
import io.reactivex.Observable

/**
 * Created by chenxz on 2018/5/27.
 */
class registerModel : BaseModel(), RegisterContract.Model {

    override fun register(map: MutableMap<String, String>): Observable<HttpResult<Any>> {
        return RetrofitHelper.service.register(map)
    }

    override fun getCode(phone: String, type: String): Observable<HttpResult<Any>> {
        return RetrofitHelper.service.GetCode(phone, type)
    }



}